import request from '@/utils/request'

// 查询记录发型列表
export function listHaircut(query) {
  return request({
    url: '/record/haircut/list',
    method: 'get',
    params: query
  })
}

// 查询记录发型详细
export function getHaircut(haircutId) {
  return request({
    url: '/record/haircut/' + haircutId,
    method: 'get'
  })
}

// 新增记录发型
export function addHaircut(data) {
  return request({
    url: '/record/haircut',
    method: 'post',
    data: data
  })
}

// 修改记录发型
export function updateHaircut(data) {
  return request({
    url: '/record/haircut',
    method: 'put',
    data: data
  })
}

// 删除记录发型
export function delHaircut(haircutId) {
  return request({
    url: '/record/haircut/' + haircutId,
    method: 'delete'
  })
}
